<%@ page contentType="text/html; charset=UTF-8" %>
<%@page import="net.lunjin.util.Constants"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><%=Constants.TITLE %></title>
<meta name="keywords" content="<%=Constants.METAKEYWORDS %>">
<meta name="description" content="<%=Constants.METADESCRIPTION %>">
<jsp:include page="/commonImport.jsp"/>
</head>
	<style>
	<!--
	body {
	    font-family: Arial, Helvetica, sans-serif;
	    font-size:12px;
	    color:#666666;
	    background:#fff;
	    text-align:center;
	}	 
	* {
	    margin:0;
	    padding:0;
	}	 
	a {
	    color:#1E7ACE;
	    text-decoration:none;    
	}	 
	a:hover {
	    color:#000;
	    text-decoration:underline;
	}
	h3 {
	    font-size:14px;
	    font-weight:bold;
	}	 
	pre,p {
	    color:#1E7ACE;
	    margin:4px;
	}
	input, select,textarea {
	    padding:1px;
	    margin:2px;
	    font-size:11px;
	}
	.buttom{
	    padding:1px 10px;
	    font-size:12px;
	    border:1px #1E7ACE solid;
	    background:#D0F0FF;
	}
	#formwrapper {
	    width:860px;
	    margin:15px auto;
	    padding:20px;
	    text-align:left;
	    border:1px #1E7ACE solid;
	}	 
	fieldset {
	    padding:10px;
	    margin-top:5px;
	    border:1px solid #1E7ACE;
	    background:#fff;
	}	 
	fieldset legend {
	    color:#1E7ACE;
	    font-weight:bold;
	    padding:3px 20px 3px 20px;
	    border:1px solid #1E7ACE;    
	    background:#fff;
	}	 
	fieldset label {
	    float:left;
	    width:120px;
	    text-align:right;
	    padding:4px;
	    margin:1px;
	}	 
	fieldset div {
	    clear:left;
	    margin-bottom:2px;
	}
	.enter{ text-align:center;}
	.clear {
	    clear:both;
	}	
	.con {
	    padding:3px 20px 3px 77px;
	}
	-->
</style>

<script>
	function checkForm(){
		if($("#newstitle").val()==''){
			alert("请输入标题!");
			return false;
		}
		if($("#newscontent").val()==''){
			alert("请输入内容!");
			return false;
		}
		if($("#bc").val()==''){
			alert("请输入验证码!");
			return false;
		}
	}
</script>
<body class="articleview">

<jsp:include page="/top.jsp"/>

<div class="channel-nav w960 center clear mt1">
	<div id="formwrapper">
	    <h3>欢迎发表投资话题,打<font color="red">＊</font>号为必填项:</h3>
	    <form action="<%=Constants.URL %>/bbs/save" method="post" name="apForm" id="apForm" onsubmit="return checkForm();">
	    <fieldset>
	        <legend>输入信息</legend>
	        <div>
	        <label for="title"><font color="red">＊</font>标题</label>
	        <input type="text" name="newstitle" id="newstitle" value="" size="50" maxlength="50"/> 
	        <br />
			</div>  
			
			<div>
	        <label for="class">话题分类</label>
	        <select id='newstype' name='newstype' style='width:100px'>
			<option value='3' <%if("3".equals(request.getParameter("bbsType"))){out.print("selected");} %>>伦敦金</option>
			<option value='4' <%if("4".equals(request.getParameter("bbsType"))){out.print("selected");} %>>纸黄金</option>
			<option value='5' <%if("5".equals(request.getParameter("bbsType"))){out.print("selected");} %>>黄金T+D</option>
			<option value='6' <%if("6".equals(request.getParameter("bbsType"))){out.print("selected");} %>>天通金</option>
			<option value='7' <%if("7".equals(request.getParameter("bbsType"))){out.print("selected");} %>>伦敦银</option>
			<option value='8' <%if("8".equals(request.getParameter("bbsType"))){out.print("selected");} %>>纸白银</option>
			<option value='9' <%if("9".equals(request.getParameter("bbsType"))){out.print("selected");} %>>白银T+D</option>
			<option value='10' <%if("10".equals(request.getParameter("bbsType"))){out.print("selected");} %>>天通银</option>
			<option value='11' <%if("11".equals(request.getParameter("bbsType"))){out.print("selected");} %>>其它理财话题</option>
			</select>
	        <br />
			</div>
			
			<div class="con"><font color="red">＊</font>输入内容
	        <textarea id="newscontent" name="newscontent" rows="8" cols="60" style="width: 700px; height: 200px;"></textarea>
			</div>
			
	        <div>
	     		<label for="title">你的名字:</label><%=request.getRemoteAddr() %>
			</div>  
			
			<div>
		        <label for="class"><font color="red">＊</font>验证码：</label>
		        <%=request.getAttribute("bs") %> = <input type="input" id="bc" name="bc" />
		        <br />
			</div>
			
			<div class="enter">
	        <input name="create791" type="submit" class="buttom" value="提交" />
	        <input name="Submit" type="reset" class="buttom" value="重置" />
	    </div>
	    </fieldset>
	    </form>
	</div>
</div>

<jsp:include page="/foot.jsp"/> 

</body>
</html>